import React from 'react';
import { connect } from 'dva';
import { createForm } from 'rc-form';
import MemberInfo from 'components/MemberInfo';
import { ScaleTemplate } from 'components/scale';

const NativeScalePage = (props) => {
  const { dispatch, ...rest } = props;
  return (
    <div>
      <MemberInfo {...rest.member} />
      <ScaleTemplate {...props} member={rest.member} redirectUrl="/native/scale_report" />
    </div>
  );
};

export default connect(({ family }) => ({ ...family }))(createForm()(NativeScalePage));
